package com.hm.prc1;

public class Test3 {
    public static void main(String[] args) {
        String s3 = "我我我我我我谢谢谢 谢谢谢谢你你你你!!!!!";
        String s4 = s3.replaceAll("(.)\\1+", "$1");
        System.out.println(s4);
    }
}
